#include <stdio.h>

/**
 * switch 语句
 */
int main() {

	int option;

	printf("Please type 1, 2, or 3\n"
		   "1. Breakfast\n"
		   "2. Lunch\n"
		   "3. Dinner\n");
	scanf("%d", &option);

	switch (option) {
		case 1: {
			printf("Good morning\n"
				   "Order breakfast\n");
			// break 跳出流程，否则继续执行下面的语句块，不比较条件，直到遇到break
			break;
		}
		case 2: {
			printf("Good afternoon\n"
				   "Order lunch\n");
			break;
		}
		case 3: {
			printf("Good evening\n"
				   "Order dinner\n");
			break;
		}
		default: {
			printf("Order nothing\n");
		}
	}

}